<footer id="foot">
    <a class="back-to-top" href="#"><i class="Card Card-top" ></i><span class="back-to-top-text">0%</span></a>
    <div class="copyright">
        <%- themeConfig.footerInfo %>
            <%if (site.customConfig.icpcode != "") {  if (site.customConfig.icpinfo != "") { %>
                <div style="width:300px;margin:0 auto; padding:0px 0;">
                    <a target="_blank" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=<%= site.customConfig.icpcode%>" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
                        <img src="https://yanxuan.nosdn.127.net/b610ced5ac6a0e25cf6edf5606c69775.png" style="float:left;">
                        <p id="icpinfo" style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px;">
                            <%=site.customConfig.icpinfo%>
                        </p>
                    </a>
                </div>
                <%}}%>
                    <%if (site.customConfig.build_time != ""){%>

                        <div style="font-size:12px">
                            <% if(site.isHomepage){%>
                                <% if (site.customConfig.view == "on") { %>
                                    访问量:
                                    <span data-hk-page="current"></span>&nbsp;
                                    <%}}%>
                                        已经建站 <b id='build_time'></b>
                        </div>
                        <script src="https://cdn.jsdelivr.net/gh/ITJoker233/ITJoker233.github.io/CDN/js/time.min.js"></script>
                        <script>
                            buildTime = '<%= site.customConfig.build_time%>'
                            setInterval(show_date_time, 1000, buildTime);
                        </script>
                        <%}%>
                            <a href="https://blog.itjoker.cn">
                                Theme - Card
                            </a>&nbsp;|&nbsp; &#x7248;&#x6743;&#x6240;&#x6709; &copy;
                            <script>
                                var date = new Date();
                                data2 = new Date(buildTime.replace(/-/g, "/"));
                                nowYear = date.getFullYear().toString()
                                buildYear = data2.getFullYear().toString();
                                if (buildYear == nowYear) {
                                    document.write('<span class="my-face">' + nowYear + '</span>');
                                } else {
                                    document.write(buildYear + '-<span class="my-face">' + nowYear + '</span>');
                                }
                            </script>

                            <a href="<%= themeConfig.domain %>">
                                <%= themeConfig.siteName%>
                            </a>&nbsp;|&nbsp;Powered by
                            <a href="<%=site.customConfig.platformLink%>" target="_blank">
                                <%= site.customConfig.platformName%>
                            </a>
    </div>
    <script>
        let back2TopText = document.querySelector('.back-to-top-text')
        window.addEventListener('scroll', function(e) {
            let percent = document.scrollingElement.scrollTop / (document.scrollingElement.scrollHeight - document.scrollingElement.clientHeight) * 100;
            if (back2TopText) {
                back2TopText.textContent = Math.floor(percent).toString() + '%';
            }
        });
        var titleTime;
        document.addEventListener("visibilitychange", function() {
            document.hidden ? (document.title = "\uD83D\uDE25" + OriginTitile, clearTimeout(titleTime)) : (document.title = "\uD83D\uDE1D" + OriginTitile, titleTime = setTimeout(function() {
                document.title = OriginTitile
            }, 2E3))
        });
        var OriginTitile = document.title;
        <% if (site.customConfig.sentence == "on") { %>
        App.hitokoto();
        <%}%>
        <% if (site.customConfig.weather == "on") { %>
        App.weather();
        <%}%>
        var themeIcon = document.getElementById("themeIcon");
        const currentTheme = window.localStorage.getItem('theme');
        App.clearLog();
        App.outputlog();
        var logo = '%c<%= themeConfig.siteName%>\'%cBlog';
        console.info(
            logo,
            'color: #ffffff; background: #000000; padding:5px 10px 5px 10px;font-size:40px;border-radius:12px 0 0 12px;', 'color: #000000; background: #FE9A00; padding:5px 10px;font-size:40px;border-radius:0 12px 12px 0;'
        );
        $('img').attr('data-fancybox', 'images');
    </script>
</footer>